-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handles unloaded origin chain #1532
Conversation
WalkthroughThe changes primarily focus on enhancing the code's robustness by implementing optional chaining in two files. This update ensures that the code doesn't throw an error when certain properties are undefined, improving the overall stability of the application. Changes
Poem
TipsChat with CodeRabbit Bot (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (2)
- packages/synapse-interface/components/StateManagedBridge/ToTokenListOverlay.tsx (1 hunks)
- packages/synapse-interface/utils/calculateEstimatedTransactionTime.tsx (1 hunks)
Files skipped from review due to trivial changes (1)
- packages/synapse-interface/utils/calculateEstimatedTransactionTime.tsx
Additional comments: 1
packages/synapse-interface/components/StateManagedBridge/ToTokenListOverlay.tsx (1)
- 272-278: The use of optional chaining here is a good practice to prevent potential errors when
fromToken
is undefined. However, ensure that the functioncalculateEstimatedTransactionTime
can handle a potentialundefined
value fororiginTokenAddress
.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1532 +/- ##
===================================================
- Coverage 51.57449% 51.23324% -0.34125%
===================================================
Files 372 362 -10
Lines 25532 24691 -841
Branches 281 283 +2
===================================================
- Hits 13168 12650 -518
+ Misses 11074 10813 -261
+ Partials 1290 1228 -62
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Deploying with Cloudflare Pages
|
Summary by CodeRabbit
ToTokenListOverlay
component to prevent crashes when certain data is unavailable.654c9c3d06e707e38488376ece9e9956a968fb4c: synapse-interface preview link